export default {
  namespaced: true,
  state: {
    listOrder:uni.getStorageSync('activityorder')||[]
  },
  
  mutations: {
    updatelist(state,list){
      // this.listOrder.push(list)
      const set = new Set(state.listOrder)
      set.add(list)
      state.listOrder=Array.from(set)
      // state.listOrder=list
      this.commit('m_activityorder/saveListLocal')
    },
    saveListLocal(state){
      uni.setStorageSync('activityorder',state.listOrder)
    },
  }

}
